package com.shanjupay.common.exception;

/**
 * @author xiaoman
 * @version 1.0
 * @date 2021/6/20 20:06
 */
public enum ErrorCode {


    /**系统错误**/
    SYSTEM_ERROR("10000", "系统错误，请联系管理员"),

    PHONE_NUMBER_REGISTERED("10001", "手机号已注册"),

    PHONE_EMPTY("10002", "手机号为空"),

    PHONE_FORMAT_ERRO("10003", "手机号格式错误"),

    MEDIA_TYPE_ERROR("14150", "不支持的媒体类型"),

    PARAM_CHECK_ERROR("14000", "参数检错误"),

    METHOD_NOT_ALLOWED_ERROR("14050", "不支持当前请求方法类型"),
    ;

    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }


}
